<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#edit_basic" role="tab" data-toggle="tab" >基本信息</a></li>
        <li role="presentation"><a href="#edit_address" role="tab" data-toggle="tab">收货地址</a></li>
    </ul>
</div>
<div class="bjui-pageContent">
    <div class="tab-content">
        <div id="edit_basic" role="tabpanel" class="tab-pane active">
            <form action="<?php echo U('save_user_infor');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
                <input type="hidden" name="id" value="<?php echo ($va["id"]); ?>"/>
                <div class="form-group">
                    <label class="x100">昵称:</label>
                    <input type="text" name="name" data-rule="required" value="<?php echo ($va["name"]); ?>"/>
                </div>
                <div class="form-group">
                    <label class="x100">登录密码:</label>
                    <a href="<?php echo U('Index/save');?>" data-toggle="doajax" data-confirm-msg="确定要为这位会员重置密码??重置成功后,将会通过发邮件或手机短信的方式通知用户">重置密码</a>
                </div>
                <div class="form-group">
                    <label class="x100">邮箱:</label>
                    <input type="text" name="email" data-rule="required;email" value="<?php echo ($va["email"]); ?>"/>
                </div>
                <div class="form-group">
                    <label class="x100">手机:</label>
                    <input type="text" name="mobile" data-rule="required;mobile" value="<?php echo ($va["mobile"]); ?>" disabled="disabled"/>
                </div>
                <div class="form-group">
                    <label class="x100">性别:</label>
                    <input type="radio" name="sex" value="男" id="member_sex1" data-toggle="icheck" data-label="男" <?php if($va["sex"] == '男'): ?>checked<?php endif; ?>  />
                    <input type="radio" name="sex" value="女" id="member_sex2" data-toggle="icheck" data-label="女" <?php if($va["sex"] == '女'): ?>checked<?php endif; ?>  />
                </div>
                <div class="form-group">
                    <label class="x100">注册时间:</label>
                    <input type="text" name="" data-toggle="datepicker" data-rule="required" value="<?php echo ($va["add_time"]); ?>" disabled="disabled"/>
                </div>
                <div class="form-group">
                    <label class="x100">是否分销:</label>
                    <input type="radio" name="status" id="member_status1" data-toggle="icheck" data-label="是"  checked  />
                    <input type="radio" name="status" id="member_status2" data-toggle="icheck" data-label="否"   />
                </div>
                <div class="form-group">
                    <label class="x100">禁用:</label>
                    <input type="radio" name="status" value="0" id="member_disabled2" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0'): ?>checked<?php endif; ?>   />
                    <input type="radio" name="status" value="1" id="member_disabled2" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
                </div>
                <div class="form-group">
                    <label class="x100">余额:</label>
                    <input type="text" name="balance" value="<?php echo ($va["balance"]); ?>" data-rule="required" />
                </div>
                 <div class="form-group">
                    <label class="x100">积分:</label>
                    <input type="text" name="point" value="<?php echo ($va["point"]); ?>" data-rule="required" />
                </div>
                <!--
                <div class="form-group">
                    <label class="x100">累计分佣:</label>
                    <input type="text" name="" data-rule="required" />
                </div> -->
                <!-- <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
                    <tbody>
                    <tr>
                        <td>上一级</td>
                        <td>用户编号或昵称</td>
                        <td>一级下线数量</td>
                        <td>20</td>
                    </tr>
                    <tr>
                        <td>上二级</td>
                        <td>23</td>
                        <td>二级下线数量</td>
                        <td>10</td>
                    </tr>
                    <tr>
                        <td>上三级</td>
                        <td>33</td>
                        <td>三级下线数量</td>
                        <td>30</td>
                    </tr>
                    </tbody>
                </table> -->

            </form>
        </div>
        <div id="edit_address" role="tabpanel" class="tab-pane">
            <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
                <thead>
                <tr>
                    <th>收货人</th>
                    <th>联系方式</th>
                    <th>地址</th>
                   <!--  <th>使用次数</th> -->
                </tr>
                </thead>
                <tbody>
                <?php if(is_array($address)): $i = 0; $__LIST__ = $address;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ao): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($ao["name"]); ?></td>
                    <td><?php echo ($ao["mobile"]); ?></td>
                    <td><?php echo area_name($ao['province']); echo area_name($ao['city']); echo area_name($ao['area']); echo area_name($ao['towns']); echo ($ao["address"]); ?></td>
                    <!-- <td>10</td> -->
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table>
        </div>
    </div>

</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>